]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Ping the active window when using the app menu
authorGiovanni Campagna <gcampagna@src.gnome.org>
Mon, 24 Dec 2012 17:28:17 +0000 (18:28 +0100)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Tue, 25 Dec 2012 17:41:22 +0000 (18:41 +0100)
Use the new meta_window_check_alive() to verify if the application is
responding after the user activates an action from the app menu.
This in particular restores the ability to force quit applications
from the menu, even if the use a custom GMenu.

https://bugzilla.gnome.org/show_bug.cgi?id=684340

js/ui/panel.js

index 64a6d43bef7b2b27c99515410783816db0731905..76bbfb0807aa844d45821617ee28d9cf8c1890c5 100644 (file)
@@ -598,6 +598,11 @@ const AppMenuButton = new Lang.Class({
                 return;
 
             menu = new PopupMenu.RemoteMenu(this.actor, this._targetApp.menu, this._targetApp.action_group);
+            menu.connect('activate', Lang.bind(this, function() {
+                let win = this._targetApp.get_windows()[0];
+                win.check_alive(global.get_current_time());
+            }));
+
         } else {
             if (this.menu.isDummyQuitMenu)
                 return;